package com.example.demo.controller;

import com.example.demo.domain.User;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 小懒虫 <auntvt@163.com>
 * @date 2021/7/31
 */
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("list")
    public Page<User> userList() {
        List<User> lists = userService.lists();
        return null;
    }
}
